package com.yunsc.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 用户地址DTO
 * @date: 2024-05-11 23:34
 */
@Data
public class UserAddressDTO {

    @JsonProperty("addressId")
    @NotBlank(message = "addressId不能为空", groups = ValidationGroups.Update.class)
    @NotBlank(message = "addressId不能为空", groups = ValidationGroups.Delete.class)
    private String addressId;
    @NotNull(message = "地址不能为空", groups = {ValidationGroups.Insert.class})
    private AddressDTO form;
}
